Sure, but what use is that? You will have your objects sorted by the absolute value of their pointer. I guess this means you'll have your objects sorted by the order in which they are allocated in the heap. Cool, but not very useful.
You can do a sorted array of pointers and later check if a specific pointer is in it with binary search, etc.