Fixing a syntax error in ORDER BY clause.
Shard name is now lower case.