added different bit sorting