sort app id by reset