Sort the array of plugins to update