Added sort function to bedConverter