Variant sort implementation for postgresql: exponentially scheduled internal merge