GlobalLogic interview question

Sort employee object based on salary