removed duplicates from appearing in list when calling open post/draft multiple times.

Any particular reason you are sorting posts?