[#1277] Added javascript call the package_resource_reorder api call to handle actual reordering