removing random sort from sql queries; they are now redundant thanks to changes in to-fix