Sort you’ll find in shanty, perhaps (4)
I believe the answer is:
type
'sort' is the definition.
(type is a kind of sort)
'in shanty perhaps' is the wordplay.
'in' says the answer is hidden in the clue.
'TYPE' can be found hidden inside 'shanty perhaps'.
'you'll find' acts as a link.
(Other definitions for type that I've seen before include "Genre" , "Write letters" , "get words on to paper?" , "Class, kind or category" , "Use keys" .)