use unint64_t to sort read/write fields