![]() |
|
#3
|
|||
|
|||
|
The best method is to use the key parameter instead of the cmp parameter. It is faster and more efficient. Here is some sample code:
Code:
list.sort(key = lambda x: x.getPosition()[1]) |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| position tracking with patriot | pgagolf | Vizard | 4 | 04-19-2007 05:42 AM |
| Avatar always returns in initial position | pattie | Vizard | 2 | 08-31-2006 09:15 PM |
| Get position data in an own little program | Researcher | Precision Position Tracker (PPT) | 2 | 02-01-2006 03:55 AM |
| saving the position | poolshark | Vizard | 3 | 09-26-2003 02:57 PM |