Bug fix sort in FileManager

bug fix select first category when add file from main window to
FileManager