I liked it this way:
- The original Foundation Trilogy
- Extensions: Foundation’s Edge and Foundation & Earth
- Prequels: Prelude, Forward the Foundation
- Robot Series: Caves of Still — Robots and Empire
- I, Robot
- The Empire Series
It’s neither in the publication order nor the chronological. But helped me to enjoy (and re-enjoy) the plots followed by the background stories.