Sorting based on type added, removed ordering names.