Sort playlist by levels

Is it possible to add an option where we can order (not filter) a playlist, being able to add levels as we would do in Excel? For example: first by genre, in a second level of importance the tonality and then lastly bpm.