* Correcting version number issue.
* Fix: Fix the sorting function to sort in the right direction. Resolves issues with variations being discounted incorrectly.