Mainwindow / config: memorize sorting

Signed-off-by: Jerome Flesch <jflesch@gmail.com>