def sortArray(timestamps):
    """
    Sorts an array of tuples by timestamp \n
    :param timestamps: An array with tuples of timestamps and pages. \t
    :type timestamps: [(Time,str)] \n
    :returns: Sorted array with tuples. \t
    :rtype:: [(Time,str)] \n
    """
    # Use a lambda function to sort by first element in tuple
    timestamps.sort(key=lambda tuple: tuple[0])
    return timestamps