sort query set by number of characters in a field `length` in django model `mymodel`,MyModel.objects.extra(select={'length': 'Length(name)'}).order_by('length')