split getOrderLimit() into getOrder() and Database::limitResult()