sort by sequence whole life cycle get

main
MrWaradana 2 months ago
parent 4042cd442f
commit a9a8a63727

@ -35,7 +35,7 @@ async def get_all(
):
"""Returns all documents."""
query = Select(PlantTransactionData).order_by(
PlantTransactionData.is_actual.desc(), PlantTransactionData.tahun.desc()
PlantTransactionData.seq.asc(), PlantTransactionData.tahun.asc()
)
if search:
query = query.filter(

Loading…
Cancel
Save