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

This issue was related to the sorting property.