fixes #2542 - sort image listing with datatables