added sorting with overflow menu