Home made sort, got rid of datatable