def order_by(self, order_attribute):
to_return = []<EOL>for f in sorted(self.items, key=lambda i: getattr(i, order_attribute)):<EOL><INDENT>to_return.append(f)<EOL><DEDENT>return to_return<EOL>
Return the list of items in a certain order