python - Conundrum : Not Sorting Objects With SQLAlchemy -
i have feeling sqlalchemy checking first digit when orders groups id, how check digits of id?
groups = theorganization.groups.order_by(group.id.asc())
^this gets groups in particular instance of organization called "theorganization"
models
organization
id
groups
group
id
organization
basically, each organization has many groups within it
this simplified form of responseobject via nslogging xcode
where keys ids of groups in 1 particular organization
17 = "some group info" 21 = "some group info" 22 = "some group info" 3 = "some group info" 5 = "some group info" 7 = "some group info" 9 = "some group info"
why isn't sorting working? how groups ordered via id?
i have tried sorting other group attributes, , not working either.
i have tried ordering dictionaries, first created, using method listed on how can sort dictionary key? had same result. seems not being sorted properly.
i tried turning basequery list, , sorting attribute, stated in how sort list of objects , based on attribute of objects?, did not work either.
Comments
Post a Comment