U.S. stock indexes were on track for an uneven close in late-afternoon trading Tuesday after spending much of the day drifting mostly higher. Energy, mining and financial companies were among the big gainers, while the technology sector lagged the most,…