```
class Solution(object):
def canAttendMeetings(self, intervals):
"""
:type intervals: List[Interval]
:rtype: bool
"""
a = []
map(a.extend, sorted((i.start, i.end) for i in intervals))
return a == sorted(a)
```