enum ordering and where conditions