Added SortData function

Implemented using a bubble sort
10s AJAX timeout; spring by DateLogged
Merge branch 'bubblesort' into develop