@@ -109,10 +109,10 @@ class Content(Resource):
def get(self):
if self.url:
- return list(self._search_content())
+ sortedData = sorted(list(self._search_content()), key=lambda x:x['date'], reverse=True)
+ return sortedData
else:
sortedData = sorted(list(self._get_contents()), key=lambda x:x['date'], reverse=True)
- #print()
return sortedData
def post(self):