Squashed commit of the following:

commit 7dbde2d551c7d1ad8a459cfc8b56fee7b9437caa
Author: fess16 <fess61@gmail.com>
Date:   Wed Aug 7 15:01:09 2013 +0300

    fix labels creation (when sort by date)