/*
 * call-seq:
 *  pl.sort(properties) -> result
 *
 * Sorts the playlist on _properties_, which is an array of medialib properties
 * such as ["title", "artist"].
 */
static VALUE
c_sort (VALUE self, VALUE props)
{
        xmmsv_t *cprops;
        PLAYLIST_METHOD_HANDLER_HEADER

        cprops = parse_string_array2 (props);
        res = xmmsc_playlist_sort (xmms->real, pl->name, cprops);
        xmmsv_unref (cprops);

        PLAYLIST_METHOD_HANDLER_FOOTER
}