cocoa: sort files opened from Finder the same way Finder does

Fixes #497