implemented sorting filters