remove array of 0.0.1 and sort hash correctly