/filter -wwzcteu 1 32 @customwindow @customwindow *
That well sort a custom window with format as you showed it into desending numeric order.
On the saving I still dont see why your using a /hsave if your going to use a /fwrite and a loop, its going to be slower than using a /hsave.