sort patches by number, print to stderr