add function to sort byte slices