Add sort option and provide better feedback during generation