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