How are the chapters of Sura classified?

Meccan or Medinan

**********