I think you need the -n flag for sort#
According to man sort:
-n, --numeric-sort
    compare according to string numerical value
edit
The print0 may have something to do with this, I just tested this. Take the print0 out.
I think you need the -n flag for sort#
According to man sort:
-n, --numeric-sort
    compare according to string numerical value
edit
The print0 may have something to do with this, I just tested this. Take the print0 out.