Skip to content

implement database ordering

Jiří Pudil requested to merge native-database-ordering into master

closes #3 (closed)

reuses expressions from !20 (merged), so that you can order by columns:

$table->findAll(orderBy: [
    desc($table->publishedAt()),
]);

or custom expressions:

$table->findAll(orderBy: [
    asc(year($table->publishedAt())),
]);

cc @dkurowski

Edited by Jiří Pudil

Merge request reports

Loading