data is now sorted by type at read, instead of later