Changed code that makes sorts sql command history to specify ascending (...

Trivial change to optimize sorting of SQL history query.