I\'m in a situation where I must output a quite large list of objects by a CharField used to store street addresses.
My problem is, that obviously the data is ordere
If you're using PostgreSQL (not sure about MySQL) you can safely use following code on char/text fields and avoid cast errors:
MyModel.objects.extra( select={'myinteger': "CAST(substring(charfield FROM '^[0-9]+') AS INTEGER)"} ).order_by('myinteger')