adamklein/pandas — comment on commit 542b8ffcd4a15cdaab1732ae24186979a94b1fd8
File: pandas/core/frame.py line 818
By wesm:

What you actually want to check is the lexsort depth