Fixed Sorting Issues in addinorder