added allowable sorts and buckets to code and comments