There's no quick way to get this result, here is a custom alias I made for you :
alias order_remini {
var %n = $3
while ($ini($1,$2,%n) != $null) {
if ($readini($1,$2,$calc(%n + 1)) != $null) writeini $qt($1) $2 %n $v1
else remini $qt($1) $2 %n
inc %n
}
}
Instead of 'remini file section item', use 'noop $order_remini(file,section,item)'