Commit be90da69 authored by damb's avatar damb
Browse files

Return ordered result

parent bee25889
......@@ -130,7 +130,10 @@ class BoreholeHydraulicDataListResource(ResourceBase):
# TODO(damb): Add additional filter criteria
try:
return query.one()
return query.\
order_by(orm.BoreholeSection.m_starttime).\
order_by(orm.HydraulicSample.m_datetime_value).\
one()
except NoResultFound:
return None
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment