basic JavaScript sorting for now for overview page