Tweaked js file to implement the function for sorting the versions displaying the drop down.