adding sorting to list table