how does list.sort work in python code example Example: sorting python array sorted(list, key=..., reverse=...)