Case Insensitive Sort with SQLObject
Submitted by jeff on Wed, 01/20/2010 - 19:08.
The key to case-insensitive search is to sort by the lowercase or uppercase of the sorting column.
SELECT * FROM songs ORDER BY lower(name)
from sqlobject.sqlbuilder import func print list(Songs.select(orderBy=func.lower(Songs.q.name)))
Recent blog posts
- Amazon S3 Website CNAME
- Button labels for checkout
- Insert html django contrib messages
- Twitter Bootstrap not working with LESS.js
- Javascript libs that offer basic subset of jquery features
- Building the donor-matic
- Playing with free Google Map alternatives.
- Some flows are not as complicated as they appear
- Form design crib sheet
- Script to get IE9 Windows Virtual PC images into Virtual Box