US stock indexes ended mostly higher on Wall Street, enough to mark another record high close for the Nasdaq composite, the AP reports. Major indexes spent most of the day wavering between small gains and losses Thursday, then wound up with modest gains. Energy companies slumped along with the price of oil, but several others rose after reporting stronger-than-expected profits, including Under Armour and PayPal. The Standard & Poor's 500 index edged up 1 point, less than 0.1%, to 2,388. The Dow Jones industrial average added 6 points, less than 0.1%, to 20,981. The Nasdaq composite increased 23 points, or 0.4%, to 6,048. Slightly more stocks fell than rose on the New York Stock Exchange. (More stock market stories.)