Cy on Nostr: I guess technically if I was careful that the binary representation had the same ...
I guess technically if I was careful that the binary representation had the same sorting order as the integers, I could do that. Was that big endian or little endian? (searches for it) No one knows, huh. (Writes test program in 10min)
Attention! Convert your integers to big endian byte order, if you want them to have the same binary and numeric sorting order! If they're little endian, then the number 0x12345678 is smaller than the number 0x11345679!
Published at
2024-12-14 22:19:36Event JSON
{
"id": "095011d3f9411a01291da60ad5a678bf1a39d1bde5711fd5c40245e998e201d3",
"pubkey": "bd9bf6b093eae31b2d42eeab8d71227ea77991ac6a1c8e6861d64e8ba508c327",
"created_at": 1734214776,
"kind": 1,
"tags": [
[
"p",
"bd9bf6b093eae31b2d42eeab8d71227ea77991ac6a1c8e6861d64e8ba508c327",
"wss://relay.mostr.pub"
],
[
"e",
"783d9576b7089b92ede228861365f2710c200db4fc3b1e60668095517bee8b77",
"wss://relay.mostr.pub",
"reply"
],
[
"proxy",
"https://fedicy.us.to/cy/p/1734214776.223218",
"activitypub"
]
],
"content": "I guess technically if I was careful that the binary representation had the same sorting order as the integers, I could do that. Was that big endian or little endian? (searches for it) No one knows, huh. (Writes test program in 10min)\n\nAttention! Convert your integers to big endian byte order, if you want them to have the same binary and numeric sorting order! If they're little endian, then the number 0x12345678 is smaller than the number 0x11345679!\n",
"sig": "7c81f35f780f5aeaa8062b440be9b15397140a7ba16df0ba1916829fedb93ae09a560fee6bf7cbc278947bb5e7f6d2744d385f3fcf39000e719074c61f021b88"
}