Added 'name' to field sort SQL statement