added sorting of fingerprint bits