def divisors(num):
    """
    Takes a number and returns all divisors of the number, ordered least to greatest
    :param num: int
    :return: list (int)
    """
    list = []
    x = 0
    for var in range(0, num):
        x = x + 1
        if num % x == 0:
            list.append(x)
    return list