aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-06-30 18:00:56 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-06-30 18:00:56 -0700
commit473cf4244be5d2e8fce9b95d1a750cf538dfc74b (patch)
tree81daf772ef03424132b944b48f60e901b0e809fd /rust/src
parenta82cffed703665496913d9ca0155e888ec35716b (diff)
downloadfatcat-473cf4244be5d2e8fce9b95d1a750cf538dfc74b.tar.gz
fatcat-473cf4244be5d2e8fce9b95d1a750cf538dfc74b.zip
fix release ref and contrib ordering
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/api_server.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/rust/src/api_server.rs b/rust/src/api_server.rs
index d05c00d4..408ad5a9 100644
--- a/rust/src/api_server.rs
+++ b/rust/src/api_server.rs
@@ -303,6 +303,7 @@ fn release_row2entity(
let refs: Vec<ReleaseRef> = release_ref::table
.filter(release_ref::release_rev.eq(rev.id))
+ .order(release_ref::index.asc())
.get_results(conn)
.expect("fetch release refs")
.iter()
@@ -320,6 +321,7 @@ fn release_row2entity(
let contribs: Vec<ReleaseContrib> = release_contrib::table
.filter(release_contrib::release_rev.eq(rev.id))
+ .order((release_contrib::role.asc(), release_contrib::index.asc()))
.get_results(conn)
.expect("fetch release refs")
.iter()