diff --git a/plugins/dbms/maxdb/enumeration.py b/plugins/dbms/maxdb/enumeration.py index b88007392..9b735f019 100644 --- a/plugins/dbms/maxdb/enumeration.py +++ b/plugins/dbms/maxdb/enumeration.py @@ -48,6 +48,9 @@ class Enumeration(GenericEnumeration): if retVal: kb.data.cachedDbs = retVal[0].values()[0] + if kb.data.cachedDbs: + kb.data.cachedDbs.sort() + return kb.data.cachedDbs def getTables(self, bruteForce=None): diff --git a/plugins/dbms/sybase/enumeration.py b/plugins/dbms/sybase/enumeration.py index f9cc21871..fd15a72b7 100644 --- a/plugins/dbms/sybase/enumeration.py +++ b/plugins/dbms/sybase/enumeration.py @@ -102,6 +102,9 @@ class Enumeration(GenericEnumeration): kb.data.cachedDbs = retVal[0].values()[0] break + if kb.data.cachedDbs: + kb.data.cachedDbs.sort() + return kb.data.cachedDbs def getTables(self, bruteForce=None):