Job index sorting properly