Added testing of sorting of identical lists

Added testing of sorting of identical lists.