Completed basic test cases
Re-ordered ranks and utilised a reverse sort