From 865c50b9d4cc880e7e239de772bfacf9875e52e9 Mon Sep 17 00:00:00 2001 From: Joe Hager Date: Wed, 3 Oct 2007 02:46:21 +0000 Subject: [PATCH] Added sorting to the doIds listed in the object list. --- direct/src/http/webAIInspector.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/direct/src/http/webAIInspector.py b/direct/src/http/webAIInspector.py index 4107947b4d..b16c20f7fa 100755 --- a/direct/src/http/webAIInspector.py +++ b/direct/src/http/webAIInspector.py @@ -7,6 +7,7 @@ The port will need to be defined when the instance is inited. """ import string, time, direct, inspect +from operator import itemgetter from direct.directnotify.DirectNotifyGlobal import directNotify from direct.http import WebRequest from socket import gethostname @@ -225,6 +226,8 @@ class aiWebServer(SystemInformation): head = '\n\n\n\nObject List\n\n\n' objList = self.generateSortedIDList() + # Need to sort objList by second col (the doid) + objList = sorted(objList, key=itemgetter(1)) objList.reverse() body = '' # Pop off the Null entry