[FIX] fix view for types and sorting