A compound of formula (I), wherein A, R 1 , R 3 , and R 24 are described herein. The compounds are useful as inhibitors of potassium channel function and in the treatment and prevention of arrhythmia, I Kur -associated disorders, and other disorders mediated by ion channel function.