Aggiunto un sort

Leonardo Robol [2010-04-17 13:40]
Aggiunto un sort
Filename
phcstats.py
diff --git a/phcstats.py b/phcstats.py
index 40c1993..802df33 100755
--- a/phcstats.py
+++ b/phcstats.py
@@ -43,7 +43,9 @@ def IsLastAlive(client):
     effettuato.
     """
     data = LoadClientData(client)
-    return data.items()[-1:][0][1]
+    data = data.items()
+    data.sort()
+    return data[-1:][0][1]

 def LoadClientData(client):
     """
ViewGit