sort power and cost by intvalue not string