If there are indeed nulls, this post contains a script which should most likely fix the metadata: SQL script for cleaning up Option sortOrders in database
If there are indeed nulls, this post contains a script which should most likely fix the metadata: SQL script for cleaning up Option sortOrders in database