SMS Sorting function

description soon