In case of equal voxel values, sort first the oldest voxels.

This helps when using the priority queue in the watershed algorithm because voxels with the same priority are extracted now in the order of introduction in the queue, providing more realistic results.
In createResultImage, take into account if the "Show result" check box is selected.