I have an unsorted List ... let's say it's ArrayList which contains Strings that can occur multiple times. How can I achive to sort the occurence of a very certain string(s) first. The rest of the entries can remain in the given order.
eg. certain string that has to be on top: 'JKL'
unsorted: { DEF, ABC, JKL, GHI, ABC, DEF, JKL, MNO, GHI, ABC, MNO, JKL }
sorted: { JKL, JKL, JKL, DEF, ABC, GHI, ABC, DEF, MNO, GHI, ABC, MNO }
Any suggestions? :)