Writes both raw and sorted data (low-high)