sorting is implemented
dialog dao is removed