Tidy Caseless Ordering in Django

A long standing Django admin annoyance is sorting a model by name. Why is my lower-case name at the bottom of the list? Thanks, ASCII...

For years I've ordered my models using a lower-case slug, but sometimes you need the big guns: database functions. Let's do powerful ordering, while keeping our code nice and neat.

Published 30 Oct. 2023