Ask HN: Optimal shop sorting?