sort resource