adds |dictsort to the ext loop
 to the ext loop