rework selection files by date or alphabetically

Signed-off-by: Dzigar <Dzigar2012@gmail.com>