Please use strict compare operators '!== here - item.data.order === 'a' passes this check