Solving sorting issue on the back-end of the menu manager.

This issue was related to the sorting property. (reverted from commit 68ba63a05607f48a72fa085a7124e60340ba0cf5)