Add ordering to ui functionalities.