Fix numeric sorting function.
Use td instead of span.