Haven't tested this, but I think it should sort the version numbers.