Changed the recently order assignment sort logic