All the ones on the DS can be emulated on your PC just fine, not sure about 3DS though. You'll need both screens and a mic for some cases so play it like that.
The series goes like this:
Ace Attorney -> Justice for All -> Trials and Tribulations -> Apollo Justice -> Duel Destinies -> Spirit of Justice
Has several spinoffs and they should be played after the first three games:
Ace Attorney Investigations -> Ace Attorney Investigations 2 (has a translation) -> Professor Layton vs Phoenix Wright -> Dai Gyaukten Saiban (has a translation) -> Dai Gyakuten Saiban 2 (currently being translated.)
Switch version is fine if you don't mind the HD sprites.