Hi.
I use an "ordering" type of field.
This is the output:
SELECT t0.id AS pid,t0.pk AS pk,t0.pkb AS pkb,t0.parent_id AS parent,t0.author_id AS author,t0.author_session AS author_session,t0.cck AS cck,t0.storage_location AS loc,tt.id AS type_id,tt.alias AS type_alias,t2.price AS price
FROM `#__cck_core` AS t0
LEFT JOIN `#__content` AS t3 ON t3.id = t0.pk
LEFT JOIN `#__j2store_products` AS t1 ON t1.product_source_id = t3.id
LEFT JOIN `#__j2store_variants` AS t2 ON t2.product_id = t1.j2store_product_id
LEFT JOIN `#__cck_core_types` AS tt ON tt.name = t0.cck
WHERE t3.access IN (1,1,3,6)
AND ( t3.publish_up = '0000-00-00 00:00:00' OR t3.publish_up <= '2019-01-16 09:23' )
AND ( t3.publish_down = '0000-00-00 00:00:00' OR t3.publish_down >= '2019-01-16 09:23' )
AND t0.cck = 'les_visites'
AND t3.state = 1
ORDER BY t3.title ASC
LIMIT 25
SELECT COUNT(t0.id)
FROM `#__cck_core` AS t0
LEFT JOIN `#__content` AS t3 ON t3.id = t0.pk
LEFT JOIN `#__j2store_products` AS t1 ON t1.product_source_id = t3.id
LEFT JOIN `#__j2store_variants` AS t2 ON t2.product_id = t1.j2store_product_id
LEFT JOIN `#__cck_core_types` AS tt ON tt.name = t0.cck
WHERE t3.access IN (1,1,3,6)
AND ( t3.publish_up = '0000-00-00 00:00:00' OR t3.publish_up <= '2019-01-16 09:23' )
AND ( t3.publish_down = '0000-00-00 00:00:00' OR t3.publish_down >= '2019-01-16 09:23' )
AND t0.cck = 'les_visites'
AND t3.state = 1