better bitmap sorting