added sorting options (length, recent, number of amendements)