Victoria Wood came up with a last comedy sketch in her final days it has been revealed.

The much-loved comedian, who died of cancer at just 62 in April 2016, came up with a hilarious comic routine about tidying her sock drawer, the Mirror reports.

The multi BAFTA award-winning comedian, writer, director, actor and musician also spent her time watching MasterChef and listening to Radio 3 as she was cared for by her loved ones.

The Prestwich-born comedy legend wanted to keep working, a new authorised biography Let’s Do It by Jasper Rees has revealed.

Comedy icon Victoria Wood

Dame Julie Walters, her good friend and long-term collaborator, visited Victoria in hospital in 2016 just before she was allowed home for palliative care and found her to be in a state of 'determined denial.'

She explains: “Vic said, ‘I just need to get this managed – the pain. And then I’m going to write something.’

"They were sending her home to die in fact, but she wasn’t going home to die.

On stage in 1987

"It was her way of dealing with it. Otherwise you have to face, ‘OK this is the end’. She didn’t want to do that.”

The biography reveals Victoria first fought cancer in 2012 before it returned in 2015.

Another friend Paul Roberts recalls telling her she didn’t look well, but says she didn't want to hear that.

“We spent a lovely afternoon once I had cottoned on to the fact that Vic was happy denying the inevitable," explains Paul.

Another close pal Piers Wenger, who moved in for a fortnight to care for her, says: “Victoria said to me days before she died, ‘I might not get rid of it but if I can just get on my feet and just get back to work..."

Victoria Wood as Bren in Dinnerladies

Piers says he and Victoria spent time together watching repeats of the BBC cookery contest MasterChef in batches of three.

He then handed over to her sister Rosalind, who found Victoria to be “in good nick emotionally."

She spent her time listening to Radio 3 or asking for the bedroom window to be opened at her home in Highgate, London, so she could listen to the birdsong.

And lying in bed Victoria, whose classic musical sketches include The Ballad of Barry and Freda (Let's Do It), came up with the comic routine about her sock drawer.

Akse p19's Victoria Wood mural in Prestwich

"It was absolutely hilarious,” Rosalind says.

Rosalind was with her younger sister when she passed away at 6.45am on April 20, and one of the last things she told Victoria was “Everybody loves you.”

Victoria, who was raised in Bury and educated at Fairfield County Primary School and Bury Grammar School for Girls, was given a piano for her 15th birthday in 1968 and joined the Rochdale Youth Theatre Workshop that year.

She shot to fame when she won the TV talent show New Faces in 1974 at just 20-years-old.

Her first big break was as a novelty act on the BBC’s consumer affairs programme That’s Life! in 1976.

She met Dame Julie in 1970 at Manchester Polytechnic where Victoria was hoping to enroll and Dame Julie was coming to the end of her course.

Her first play Talent was later commissioned for television starring her pal.

Peter Eckersley, the head of drama at Granada Television, offered her a sketch show and she wrote Wood and Walters.

Get the latest updates from across Greater Manchester direct to your inbox with the free MEN newsletter

You can sign up very simply by following the instructions here

Victoria became a national treasure in the 80s after transferring to the BBC from Granada and creating sketch show Victoria Wood As Seen on TV, again starring Dame Julie, which saw the creation of the soap opera spoof Acorn Antiques.

In later years she moved away from sketch comedy, creating successful TV dramas Pat and Margaret and anthology series Victoria Wood as well as the sitcom Dinner Ladies.

In 2006, she won two BAFTA awards for acting and writing for her drama Housewife, 49, an adaptation of the diaries of Nella Last.

In 1997 she was made an OBE in the Queen’s Birthday Honours and she was made a CBE in 2008.

She was the mother of two children, Grace and Henry, by TV magician Geoffrey Durham. The couple separated in 2002 after more than 20 years of marriage.

In December last year a huge mural was unveiled in Prestwich village in tribute to Victoria, the work of acclaimed street artist Akse P19, who is also responsible for a painting of late Fall singer Mark E. Smith in the Bury village.

Taking up the entire gable end of the Sword and Sparrow tattoo parlour on Bury Old Road the portrait included a quotation from one of her most famous jokes: "I'm going North. It's a compulsion with me."

The full joke includes the punchline: "Even in Tesco, I head straight for the freezer cabinets on the back wall."