Sorting a list created from a parsed xml message

kaklis at gmail.com kaklis at gmail.com
Wed Jul 21 08:36:21 EDT 2010


Hi pythonistas,
>From the subject of my message it's clear that i get an xml message
from a socket, i parse it and the result is a list like the one that
follows:
ID_Col
4 	  Server 	ak 	        ip 	OFFLINE

29      Server 	and2 	ip 	OFFLINE

5 	  Proxy 	l34e         ip	OFFLINE

6  	  Proxy 	barc 	        ip 	ONLINE

41 	  Proxy 	proxy-2 	ip 	ONLINE

53 	  Server 	server-4 	ip	ONLINE

52 	  Server 	server-3 	ip 	ONLINE


What i want is to print this list sorted by ID_Col?
Any Suggestions?

Antonis K.



More information about the Python-list mailing list