CRUNCH-329: Fix secondary sorts for writables by re-introducing type info.