finish sort function and about dialog