Replaced SQL #order with #sort. Order treats 'J' and 'j' as two different characters where upper set precedes lower set. SQL syntax to alter the case or case-sensitivity appears to differ among databases.