Switch to side-by-side view
--- a/Allura/allura/lib/macro.py +++ b/Allura/allura/lib/macro.py @@ -164,6 +164,10 @@ sort_key, sort_dir = 'name', pymongo.ASCENDING elif sort == 'random': sort_key, sort_dir = None, None + elif sort == 'last_registred': + sort_key, sort_dir = '_id', pymongo.DESCENDING + elif sort == '_id': + sort_key, sort_dir = '_id', pymongo.DESCENDING projects = [] if private: