Fix query for grouping payments by city.
Correct html err.
Parameterize sorting criteria in payments query.