Fix ordering of destructive button items

This fixes an issue where the order of the destructive button could be
incorrect under certain circumstances. It also fixes potential
duplication resulting from the order in which we add items to the array
that ends up being associated with the action sheet.