Replaced reversed(list( with order parameter. Thanks @jezdez!