Introduce get_list_order_by_sql() and get_list_limit_sql()