fix unsafe unlist in ordering (close #94)