added Ladies First sorting table and added sorting db query