We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89a7113 commit a464fbbCopy full SHA for a464fbb
mirage/config.js
@@ -82,7 +82,7 @@ export default function() {
82
83
this.get('/crates/:crate_id/versions', (schema, request) => {
84
let crate = request.params.crate_id;
85
- return schema.versions.where({ crate });
+ return schema.versions.where({ crate }).sort((a, b) => compareIsoDates(b.created_at, a.created_at));
86
});
87
88
this.get('/crates/:crate_id/:version_num/authors', (schema, request) => {
0 commit comments