Sorting working but reversed for testing locally
DRY
Sorting function which can take a property as an argument added
Testing for reverse removed