sorting: Use old sorting algorithm for channels
sorting: Use old sorting algorithm for channels

This algorithm should be backwards compatible

Signed-off-by: Adrian Suciu <3c34ec1243786ab90427a944e16a4b958b5547c5@analog.com>

analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio,analogdevicesinc/libiio