fixed recently opened files sorting when it was already in the list