Added: sort to IRs