Order package by ram when resizing vm