LAWRENCE, Kansas (Ticker) -- Roy Williams called it one of the best college basketball games he has ever seen. The fact that he won again helped.
In a game featuring one run after another and a raucous crowd at Allen Fieldhouse, Nick Collison totaled 24 points and 23 rebounds, helping No. 13 Kansas rally for a frenetic 90-87 Big 12 Conference victory over third-ranked Texas.
Kirk Hinrich scored 25 points for the Jayhawks (14-5, 4-1 Big 12), who avoided their third straight loss by rebounding from Saturday's disheartening 91-74 setback to top-ranked Arizona.
The Jayhawks held a 20-point lead in that one. They turned the tables this time around, trailing by as many as 12 points in the first half before halting Texas' winning streak at eight games.
"Losing to Arizona the way we did and to win this game against a great team gives us a lot more confidence in our team, and hopefully we can go win on the road," said guard Aaron Miles, who had 15 points and nine assists.
Kansas also posted its second straight thrilling victory over the Longhorns (13-3, 4-1). Last year in Austin, the Jayhawks walked away with a 110-103 overtime triumph as Drew Gooden scored 22 points after halftime.
"One of the best college games I have ever seen was when we played last year in Austin," Williams said. "I don't think we would ever top that, but tonight may have been that."
One of the reasons was Collison, who had the most rebounds in one game for Kansas since Williams became coach 15 years ago. He grabbed a career-high 23 boards en route to his fifth double-double of the season.
"I don't know that I have ever seen a person be so relentless on the backboards as Nick Collison was tonight," Williams said. "If those NBA scouts sitting over there tonight say that there is anybody in the world who has a bigger heart than that sucker, than they are damn blind."
Keith Langford chipped in 10 points for the Jayhawks, who avoided their first three-game losing streak since February 1994. Texas coach Rick Barnes credited Collison and Hinrich.
"They did what seniors are supposed to do," said Barnes, whose team fell to 0-6 all-time in Kansas and 2-10 in the series. "They lost two games, they came home and won.
"Collison was terrific and I thought Hinrich was, too. They've got two of the best players in college basketball, and tonight they did what they had to do."
T.J. Ford had 25 points and 10 assists for the Longhorns, who had won their previous eight games by an average of 18.1 points. Behind the hot shooting of Brian Boddicker, they jumped to a 25-13 lead in the opening 8:15.
Texas had runs of 11-0 and 7-2 in the first half. But Kansas answered with spurts of 9-0 and 9-2, the second of which cut its deficit to 46-43 with 11 seconds left before intermission.
The Jayhawks closed within 54-53 on a basket by Lankford 2:35 into the second half. But the Longhorns countered with a 7-0 burst, opening a 63-55 lead on Boddicker's 3-pointer with 14:40 remaining.
Boddicker scored 20 points in 23 minutes off the bench, going 6-of-9 from behind the arc. Texas was 7-of-16 from 3-point range as a team.
With the game being played at a fever pitch, Kansas again fought back, this time using an 11-4 run to get within 67-66 with 11:39 to play. Collison had four points in the spurt.
Not to be outdone, Texas reeled off nine of 11 points to regain control, building a 76-68 advantage on a layup by Brandon Mouton with 8:52 remaining.
"We knew that would be how it is," said Ford, the lightning-fast point guard. "Last year, the game was really competitive. That is how it is every time against Kansas. Tonight, the game was really up and down."
The Jayhawks had the last run - a 14-2 burst that included a combined 12 points from Collison and Hinrich and gave them an 82-78 lead with 5:15 to go. Collison hit a 3-pointer with 6:14 left to give Kansas its first lead of the second half, 79-78.
"I kind of got a second wind in the second half and it really wasn't too bad fatigue-wise," said Collison, whose team was outrebounded, 45-32. "We just have to consistently bang with those guys."
The Jayhawks led over the final 6:14.
After Mouton's layup, Texas went 5:07 without another field goal. During Kansas' decisive run, the Longhorns were 0-for-4 from the field with a turnover.
Mouton had a basket with 3:45 left to get the Longhorns within 84-82, but that was their last field goal.
"We just need to finish the last four minutes," Ford said. "In all three of our losses, we have not been able to finish the last four minutes."
Ford was just 8-of-23 from the field as Texas shot 43 percent (30-of-70). The Jayhawks shot 47 percent (32-of-68) - 55 percent (16-of-29) in the second half. Both teams went 20-of-28 from the free-throw line.