This page was last modified 04:26, 15 April 2008.
How to sort contacts
From Forum Nokia Wiki
This is a simple code snippet by which one can sort the contacts.
db = contacts.open() names = [] numbers = [] for i in db: names.append(db[i].title) num = db[i].find('mobile_number') if num: numbers.append(num[0].value) # first mobile else: numbers.append(None) names.sort() #Sorts the list of names alphabetically i = appuifw.selection_list(names) print 'Number =', numbers[i] <code python>
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 7650: Possible memoryleak in built-in Contacts-application? | mmalo | General Symbian C++ | 1 | 2002-07-30 10:52 |
| Nokia N73's firmware for SyncML has big error,Thanks! | lijinglailenny | OMA DM/DS/CP | 2 | 2007-07-18 04:29 |
| 6600 characters too small in sms messaging | eric75007 | General Discussion | 2 | 2004-01-16 12:42 |
| phonebook/Contacts utility in MIDP SDK for series60 7650 | yashodhan | Mobile Java General | 2 | 2003-05-21 13:33 |
| SIM Phone book access | hananbercu | Mobile Java General | 5 | 2008-03-04 07:21 |
