added explicit sorting to constants editor

Constants editor lost sorting with move to TDictionary. Added explicit
sorting to remedy.