Fix sql gender sorting
Fix sql gender sorting 2
Fix sql gender sorting 3
Fix sql gender sorting 4