protected function registerMediaSort()
    {
        $this->media_sort_null = sha1(time());

        if (defined('MEDIASORT_NULL') === false) {
            define('MEDIASORT_NULL', $this->media_sort_null);
        }
    }