AA 5895 then AA 1140 at Charlotte
Montgomery → Charlotte → Santa Ana
Timetable, Charlotte time
20:25AA 5895 from Montgomery at the gate
20:07AA 1140 to Santa Ana leaves the gate
23 h 42 apart on the timetable, overnight
AA 1140 leaves 23 h 42 after AA 5895 arrives on the timetable: more than half a day, so not a connection we count.