sorting working for byte aligned powers of two