def sort(x, by = None, asc = True, ascending = True, des = False, descending = False):
    if type(x) == list:
        if asc == ascending == True and des == descending == False: return sorted(x)
        else: return reverse(sorted(x))
    else:
        if type(x) == pd.Series:
            if asc == ascending == True and des == descending == False: return x.sort_values(ascending = True)
            else: return x.sort_values(ascending = False)
        else:
            if by is None: col = columns(x)
            else: col = by
            if asc == ascending == True and des == descending == False: return x.sort_values(ascending = True, by = col)
            else: return x.sort_values(ascending = False, by = col)