[Tutor] SQLite3 DB Field Alphabetizing

David Hutto smokefloat at gmail.com
Tue Oct 12 13:41:36 CEST 2010

When calling a sqlite3 db file in python 2.6 on Ubuntu, I get the
following when the items are taken from the db tuple, lstripped('u'),
and added to a list.

['.hjvkjgfkj/bdgfkjbg', 'bbbbbbbbbbbbuuzzzzzzzzz', 'jgkgyckghc',
'kfhhv ', 'khfhf', 'test', 'test10', 'test2', 'test3', 'test346w43',
'test4', 'test5', 'test6', 'test7', 'test7uyuy', 'test8', 'test9',
'testgraph', ';s;juf;sfkh', 'zzrerhshhjrs']

My question is, why is everything except [:-2] in alphabetical order?
It doesn't really matter(at this point), for my purposes, but I'd like
to know when they changed the abc's to xy;z's?


More information about the Tutor mailing list