Sort And Delete Unused Samples In Instrumentbox

Can we please have this option:

in the instrumenbox: ?

I often use the fuction “delete unused samples”… but afterwards… I have to move the instruments/samples to sort them out right after each other… know what I mean?

+1. Been suggested before and surprised not to see it yet. Guess it could be scripted though… (Or a Sort after using the native Delete Unused at least.)

There is a sort snippet. But it needs work and optimization to be released:

how do i execute this?