Commit ed028980 authored by 智勇's avatar 智勇

sort images

parent bff094f4
...@@ -730,12 +730,14 @@ exports.get_images = async function () { ...@@ -730,12 +730,14 @@ exports.get_images = async function () {
} }
if (res.details && res.details.instances) { if (res.details && res.details.instances) {
for (let k of res.details.instances) { for (let k of res.details.instances) {
imgs.push({ // imgs.push({
name: k.name, // name: k.name,
time: moment(k.created).format('LLL') // time: moment(k.created).format('LLL')
}); // });
imgs.push(k.name)
} }
} }
imgs.sort()
this.body = imgs; this.body = imgs;
return return
} }
......
Markdown is supported
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