sort by pymongo.ASCENDING (1) gives dates from old to recent sort by pymongo.DESCENDING (-1) gives dates from recent to old :return:
Need to CONVERT STRING TIME to DATETIME OBJECT :param time: :param message: MUST be a dictionary :return: