#214: added sorting of object in dialog windows