Order input, filter, output