sort Buckets and eliminate Klauseln