improve sort target
fix test cases
rename template variable
bump up version to v0.4.1