diff --git a/inquisitor/app.py b/inquisitor/app.py index 5974796..babbb83 100644 --- a/inquisitor/app.py +++ b/inquisitor/app.py @@ -71,6 +71,9 @@ def root(): total += 1 if not any(map(lambda f: f(item), filters)): active_items.append(item) + # Sort items by time + active_items.sort(key=lambda i: i['time'] if 'time' in i else 0) + logger.info("Returning {} of {} items".format(len(active_items), total)) if item_read_exceptions: read_ex = {