Finished updating array sorting methods