DSP algorithms for automatic sorting

1