now sorts by relative path grouped by "when"