Implement getClassOrder
instead of sortClassList
#7459
Merged
getClassOrder
instead of sortClassList
#7459