def get_datetime_sorted_rows(dbconn, table_name, uuid=None, column=None):
    """
    Get a list of datetime sorted rows from a table in the database
    :param dbconn: database connection
    :param table_name: name of table in the database
    :param uuid: optional uuid to pull from
    :param column: optional column/field in the table to pull instead of rows
    :returns: a list of tuples containing (datetime, row) pairs or (datetime, column) pairs if columns is specified.
    """
    rows = get_rows(dbconn, table_name, uuid=uuid)
    data = []
    for r in rows:
        dt = datetime.datetime.strptime(r['Time'], "%d/%m/%Y %H:%M:%S")
        if column is None:
            data.append((dt, r))
        else:
            data.append((dt, r[column]))
    data.sort()

    return data
Get a list of datetime sorted rows from a table in the database
    :param dbconn: database connection
    :param table_name: name of table in the database
    :param uuid: optional uuid to pull from
    :param column: optional column/field in the table to pull instead of rows
    :returns: a list of tuples containing (datetime, row) pairs or (datetime, column) pairs if columns is specified.